package max.ta.timer;

import java.util.List;
import java.util.TimerTask;

public class TimerEngine {

    private final TimerManager manager = new TimerManagerImpl();

    public void execute(List<TimerTask> tasks) {
	manager.addAllTasks(tasks);
	manager.start();
    }

    public void execute(TimerTask task) {
	manager.addTask(task);
	manager.start();

    }

    public void stop() {
	manager.stop();
    }
}
